<?php 
include("core.php5/DB/ORM.class.php");
include("core.php5/DB/DataBase.class.php");
include 'core.php5/GUI/Album.class.php';
?>

<?php 

	$albumes=array();	
	$albumes=Album::getAlbums($albumes);
	//print_r($albumes);
   
?>
					<div class="box">
						<h2>Albumes</h2>						
						  <div class="imageRow">
						  <?php foreach ($albumes as $album) { 
						  		$foto=$album->foto;
						  		$nombre=explode(".", $foto->name);
						  		
						  	?>
						      <div class="single">
						  		  <a href="javascript:;" onclick="get('albumviewer.php?id=<?php echo $album->id ?>','content');" title="<?php echo $album->description?>" ><img src="images/thumbnails/<?php echo $nombre[0];?>_thumb.jpg" alt="<?php echo $album->description?>" /><?php echo '<br>'.$album->description.'<br>';?>fotos: <?php echo $album->nofotos?></a>
						      </div>
						  <?php } ?>   
						  </div>
								
					</div>
					
					<br class="clearfix" />
					

					